<?php

// 配置管理
class Config
{
    protected $api_url = "https://open-api.123pan.com";
    protected $client_id = "";
    protected $client_secret = "";

    private static $config = null;
    public static function instance()
    {
        if (is_null(self::$config)) {
            self::$config = new self();
        }
        return self::$config;
    }

    public function __construct()
    {
        $this->client_id = "your_client_id";
        $this->client_secret = "your_client_secret";
    }

    public function getClientID()
    {
        return $this->client_id;
    }    
    
    public function getApiUrl()
    {
        return $this->api_url;
    }

    public function getClientSecret()
    {
        return $this->client_secret;
    }
}